package admin

import (
	"ginBasic/app/common/lib"
	"github.com/gin-gonic/gin"
)

type BaseController struct{}

func (con BaseController) Show(code int, count int, data interface{}, msg string, c *gin.Context) {
	lib.Result(code, count, data, msg, c)
}

func (con BaseController) ShowRes(code int, msg string, c *gin.Context) {
	lib.WithMessage(code, msg, c)
}
